/*
 * @Descripttion: 
 * @version: 
 * @Author: turingchang
 * @Date: 2020-08-21 16:00:37
 * @LastEditors: turingchang
 * @LastEditTime: 2020-08-26 14:42:04
 */

var enums = {};


enums.response_code_enum = {
    success: { code: 1000, info: 'ok', msg: '成功' },
    fail: { code: 1001, info: 'fail', msg: '失败' },
    server_error: { code: 1010, info: 'server_error', msg: '服务器响应异常' },
    illegal_request: { code: 1011, info: 'illegal_request', msg: '非法请求' },
    param_error: { code: 1012, info: 'param_error', msg: '请求参数错误' },
    miss_required_params: { code: 1013, info: 'miss_required_params', msg: '缺少必要参数' },
    invalid_token: { code: 1014, info: 'invalid_token', msg: '不合法的Token令牌' },  
    token_expired: { code: 1015, info: 'token_expired', msg: 'Token已过期,请重新获取令牌' },   
    not_found: { code: 1016, info: 'not_found', msg: '404 not found 请求的资源不存在' },    
    forbid: { code: 1017, info: 'forbid', msg: '检测到安全威胁，已禁止访问' },    
    unauthorized: { code: 1018, info: 'unauthorized', msg: '请求被限制，您无权访问' },    
};

module.exports = enums;
